﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package reprise.events {
    import flash.events.*;
    import reprise.external.*;

    public class ResourceEvent extends CommandEvent {

        public var httpStatus:HTTPStatus;
        public var reason:int;

        public static const ERROR_NO_ERROR:int = 4;
        public static const ERROR_TIMEOUT:int = 1;
        public static const PROGRESS:String = "resourceProgress";
        public static const ERROR_UNKNOWN:int = 3;
        public static const USER_CANCELLED:int = 5;
        public static const ERROR_HTTP:int = 2;

        public function ResourceEvent(_arg1:String, _arg2:Boolean=false, _arg3:int=-1, _arg4:HTTPStatus=null){
            super(_arg1);
            if ((((((_arg1 == COMPLETE)) && (!(_arg2)))) && ((_arg3 == -1)))){
                log(("ResourceEvent with negative success called " + "without specifying a reason!"));
            };
            success = _arg2;
            httpStatus = _arg4;
        }
        override public function clone():Event{
            return (new ResourceEvent(type, success, reason, (httpStatus) ? httpStatus.clone() : null));
        }

    }
}//package reprise.events 
